package edu.chl.tda367.mynotes.ctrl;

import java.awt.Toolkit;
import edu.chl.tda367.mynotes.core.MyNotes;

/*
 * A controller class that handles if an image is inserted. Updates the
 * model.
 */

public class ImageCtrl implements ICtrl {

	@Override
	public void execute() {
		if(MyNotes.getInstance().getActiveDocument() != null){
			MyNotes.getInstance().insertImage();
		} else {
			Toolkit.getDefaultToolkit().beep();
		}
	}

	@Override
	public void execute(String s) {
		
	}
}
